{foreach from=$paging item=item key=key}
    {if $page == $key}{$item}{else}<a href="{$sys_action_path}/{if $key != 0}{$key}/{/if}">{$item}</a>{/if} 
{/foreach}